﻿import request from '/@/utils/request';
enum Api {
  AddDisposition = '/api/disposition/add',
  DeleteDisposition = '/api/disposition/delete',
  UpdateDisposition = '/api/disposition/update',
  PageDisposition = '/api/disposition/page',
  DetailDisposition = '/api/disposition/detail',
}

// 增加工单配置
export const addDisposition = (params?: any) =>
	request({
		url: Api.AddDisposition,
		method: 'post',
		data: params,
	});

// 删除工单配置
export const deleteDisposition = (params?: any) => 
	request({
			url: Api.DeleteDisposition,
			method: 'post',
			data: params,
		});

// 编辑工单配置
export const updateDisposition = (params?: any) => 
	request({
			url: Api.UpdateDisposition,
			method: 'post',
			data: params,
		});

// 分页查询工单配置
export const pageDisposition = (params?: any) => 
	request({
			url: Api.PageDisposition,
			method: 'post',
			data: params,
		});

// 详情工单配置
export const detailDisposition = (id: any) => 
	request({
			url: Api.DetailDisposition,
			method: 'get',
			data: { id },
		});


